package cn.bonoon.util;

import java.util.Date;

import cn.bonoon.kernel.util.StringHelper;

public class EqualsUtil {
	public static boolean notEquals(String one, String tow){
		return !equals(one, tow);
	}
	public static boolean equals(String one, String tow){
		if(StringHelper.isEmpty(one)){
//			if(StringHelper.isNotEmpty(tow)) return true;
			if(StringHelper.isEmpty(tow)) return true;
		}else{
//			if(!one.equals(tow)) return true;
			if(one.equals(tow)) return true;
		}
		return false;
	}
	
	public static boolean equals(Date one, Date tow){
		if(null == one){
			if(null != tow) return true;
		}else{
			if(!one.equals(tow)) return true;
		}
		return false;
	}
}
